package kxfang.com.common.parameter;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by ZJ
 * on 2019/12/19
 * Class Content 订单相关请求参数封装
 */
public class OrderPar extends CommonPar implements Parcelable {

    private String Id;
    private String OrderNo;
    private String GoodsMealID;//套餐ID
    private String GoodsID;//商品ID 含商品和卡劵
    private String CompanyID;//商家ID
    private String OrderPrice;//订单价格【用户实际支付价格】
    private String OrginalPrice;//订单原价
    private int OrderNum;//订单数量
    private String DiscountPrice;//优惠金额
    private String CommissionPrice;//佣金
    private String RecommandMoney;
    private String RecommandID;//推荐人ID
    private String ConsumptionMoney;//消费业绩
    private String BusinessPrice;//商家应收款
    private String CreateDateTime;
    private String UpdataDateTime;
    private int CStatu;//订单状态 1=待付款 2=待完成【已支付】 3=已完成 4=退款 5=取消
    private String PayDateTime;
    private String UseDateTime;
    private String QRUrl;//二维码路径
    private String WebID;
    private int OrderType;//订单类型 1=商家商品 2=卡卷 3=房源 4=招聘 5=店铺优惠券 6=房源置顶 7=店铺商品
    private String StoreName;//店铺名称
    private String GoodsName;//商品名称
    private String UseTime;//使用时间
    private int PayType;//1=微信 2=支付宝 3=微信小程序
    private String AddressID;//收货地址ID
    private String DistributionTime;//配送时间
    private String DistributionFee;//配送费
    private String CMemo;//备注
    private List<String> CardID;//卡劵ID
    private List<String> CartArrID;//购物车ID
    private int OrderStatu;
    private String OrderID;
    private String Distributiontype;//配送方式
    private String PickUpCode;//取货码
    private String CmpID;
    private int IsStoreCus;//是否门店新客
    private String StoreReduce;//门店新客立减金额
    private String PackingFee;
    private String NewReduce;
    private String SysCardPrice;
    private String StoreCardPrice;
    private String OldDistributionFee;
    private double FullReduce;
    private double FaceValue;

    public double getFullReduce() {
        return FullReduce;
    }

    public void setFullReduce(double fullReduce) {
        FullReduce = fullReduce;
    }

    public double getFaceValue() {
        return FaceValue;
    }

    public void setFaceValue(double faceValue) {
        FaceValue = faceValue;
    }

    public String getOldDistributionFee() {
        return OldDistributionFee;
    }

    public void setOldDistributionFee(String oldDistributionFee) {
        OldDistributionFee = oldDistributionFee;
    }

    public String getPackingFee() {
        return PackingFee;
    }

    public void setPackingFee(String packingFee) {
        PackingFee = packingFee;
    }

    public String getNewReduce() {
        return NewReduce;
    }

    public void setNewReduce(String newReduce) {
        NewReduce = newReduce;
    }

    public String getSysCardPrice() {
        return SysCardPrice;
    }

    public void setSysCardPrice(String sysCardPrice) {
        SysCardPrice = sysCardPrice;
    }

    public String getStoreCardPrice() {
        return StoreCardPrice;
    }

    public void setStoreCardPrice(String storeCardPrice) {
        StoreCardPrice = storeCardPrice;
    }

    public String getCmpID() {
        return CmpID;
    }

    public void setCmpID(String cmpID) {
        CmpID = cmpID;
    }

    public String getPickUpCode() {
        return PickUpCode;
    }

    public void setPickUpCode(String pickUpCode) {
        PickUpCode = pickUpCode;
    }

    public int getOrderClass() {
        return orderClass;
    }

    public void setOrderClass(int orderClass) {
        this.orderClass = orderClass;
    }

    private int orderClass;

    public OrderPar() {
    }

    protected OrderPar(Parcel in) {
        Id = in.readString();
        OrderNo = in.readString();
        GoodsMealID = in.readString();
        GoodsID = in.readString();
        CompanyID = in.readString();
        OrderPrice = in.readString();
        OrginalPrice = in.readString();
        OrderNum = in.readInt();
        DiscountPrice = in.readString();
        CommissionPrice = in.readString();
        RecommandMoney = in.readString();
        RecommandID = in.readString();
        ConsumptionMoney = in.readString();
        BusinessPrice = in.readString();
        CreateDateTime = in.readString();
        UpdataDateTime = in.readString();
        CStatu = in.readInt();
        PayDateTime = in.readString();
        UseDateTime = in.readString();
        QRUrl = in.readString();
        WebID = in.readString();
        OrderType = in.readInt();
        StoreName = in.readString();
        GoodsName = in.readString();
        orderClass = in.readInt();
        UseTime = in.readString();
        PayType = in.readInt();
        AddressID = in.readString();
        DistributionTime = in.readString();
        DistributionFee = in.readString();
        CMemo = in.readString();
        CardID = in.createStringArrayList();
        CartArrID = in.createStringArrayList();
        OrderStatu = in.readInt();
        OrderID = in.readString();
        Distributiontype = in.readString();
        IsStoreCus = in.readInt();
        StoreReduce = in.readString();
    }

    public static final Creator<OrderPar> CREATOR = new Creator<OrderPar>() {
        @Override
        public OrderPar createFromParcel(Parcel in) {
            return new OrderPar(in);
        }

        @Override
        public OrderPar[] newArray(int size) {
            return new OrderPar[size];
        }
    };

    public int getIsStoreCus() {
        return IsStoreCus;
    }

    public void setIsStoreCus(int isStoreCus) {
        IsStoreCus = isStoreCus;
    }

    public String getStoreReduce() {
        return StoreReduce;
    }

    public void setStoreReduce(String storeReduce) {
        StoreReduce = storeReduce;
    }

    public String getId() {
        return Id;
    }

    public void setId(String Id) {
        this.Id = Id;
    }

    public String getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(String OrderNo) {
        this.OrderNo = OrderNo;
    }

    public String getGoodsMealID() {
        return GoodsMealID;
    }

    public void setGoodsMealID(String GoodsMealID) {
        this.GoodsMealID = GoodsMealID;
    }

    public String getGoodsID() {
        return GoodsID;
    }

    public void setGoodsID(String GoodsID) {
        this.GoodsID = GoodsID;
    }

    public String getCompanyID() {
        return CompanyID;
    }

    public void setCompanyID(String CompanyID) {
        this.CompanyID = CompanyID;
    }

    public int getOrderNum() {
        return OrderNum;
    }

    public void setOrderNum(int OrderNum) {
        this.OrderNum = OrderNum;
    }

    public String getCreateDateTime() {
        return CreateDateTime;
    }

    public void setCreateDateTime(String CreateDateTime) {
        this.CreateDateTime = CreateDateTime;
    }

    public String getUpdataDateTime() {
        return UpdataDateTime;
    }

    public void setUpdataDateTime(String UpdataDateTime) {
        this.UpdataDateTime = UpdataDateTime;
    }

    public int getCStatu() {
        return CStatu;
    }

    public void setCStatu(int CStatu) {
        this.CStatu = CStatu;
    }

    public String getPayDateTime() {
        return PayDateTime;
    }

    public void setPayDateTime(String PayDateTime) {
        this.PayDateTime = PayDateTime;
    }

    public String getUseDateTime() {
        return UseDateTime;
    }

    public void setUseDateTime(String UseDateTime) {
        this.UseDateTime = UseDateTime;
    }

    public String getQRUrl() {
        return QRUrl;
    }

    public void setQRUrl(String QRUrl) {
        this.QRUrl = QRUrl;
    }

    public String getWebID() {
        return WebID;
    }

    public void setWebID(String WebID) {
        this.WebID = WebID;
    }

    public int getOrderType() {
        return OrderType;
    }

    public void setOrderType(int OrderType) {
        this.OrderType = OrderType;
    }

    public String getStoreName() {
        return StoreName;
    }

    public void setStoreName(String StoreName) {
        this.StoreName = StoreName;
    }

    public String getGoodsName() {
        return GoodsName;
    }

    public void setGoodsName(String GoodsName) {
        this.GoodsName = GoodsName;
    }

    public String getUseTime() {
        return UseTime;
    }

    public void setUseTime(String UseTime) {
        this.UseTime = UseTime;
    }

    public int getPayType() {
        return PayType;
    }

    public void setPayType(int PayType) {
        this.PayType = PayType;
    }

    public String getAddressID() {
        return AddressID;
    }

    public void setAddressID(String AddressID) {
        this.AddressID = AddressID;
    }

    public String getDistributionTime() {
        return DistributionTime;
    }

    public void setDistributionTime(String DistributionTime) {
        this.DistributionTime = DistributionTime;
    }

    public String getCMemo() {
        return CMemo;
    }

    public void setCMemo(String CMemo) {
        this.CMemo = CMemo;
    }

    public List<String> getCardID() {
        return CardID;
    }

    public void setCardID(List<String> CardID) {
        this.CardID = CardID;
    }

    public List<String> getCartArrID() {
        return CartArrID;
    }

    public void setCartArrID(List<String> CartArrID) {
        this.CartArrID = CartArrID;
    }

    public String getOrderPrice() {
        return OrderPrice;
    }

    public void setOrderPrice(String orderPrice) {
        OrderPrice = orderPrice;
    }

    public String getOrginalPrice() {
        return OrginalPrice;
    }

    public void setOrginalPrice(String orginalPrice) {
        OrginalPrice = orginalPrice;
    }

    public String getDiscountPrice() {
        return DiscountPrice;
    }

    public void setDiscountPrice(String discountPrice) {
        DiscountPrice = discountPrice;
    }

    public String getCommissionPrice() {
        return CommissionPrice;
    }

    public void setCommissionPrice(String commissionPrice) {
        CommissionPrice = commissionPrice;
    }

    public String getRecommandMoney() {
        return RecommandMoney;
    }

    public void setRecommandMoney(String recommandMoney) {
        RecommandMoney = recommandMoney;
    }

    public String getRecommandID() {
        return RecommandID;
    }

    public void setRecommandID(String recommandID) {
        RecommandID = recommandID;
    }

    public String getConsumptionMoney() {
        return ConsumptionMoney;
    }

    public void setConsumptionMoney(String consumptionMoney) {
        ConsumptionMoney = consumptionMoney;
    }

    public String getBusinessPrice() {
        return BusinessPrice;
    }

    public void setBusinessPrice(String businessPrice) {
        BusinessPrice = businessPrice;
    }

    public String getDistributionFee() {
        return DistributionFee;
    }

    public void setDistributionFee(String distributionFee) {
        DistributionFee = distributionFee;
    }

    public int getOrderStatu() {
        return OrderStatu;
    }

    public void setOrderStatu(int orderStatu) {
        OrderStatu = orderStatu;
    }

    public String getOrderID() {
        return OrderID;
    }

    public void setOrderID(String orderID) {
        OrderID = orderID;
    }

    public String getDistributiontype() {
        return Distributiontype;
    }

    public void setDistributiontype(String distributiontype) {
        Distributiontype = distributiontype;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(Id);
        dest.writeString(OrderNo);
        dest.writeString(GoodsMealID);
        dest.writeString(GoodsID);
        dest.writeString(CompanyID);
        dest.writeString(OrderPrice);
        dest.writeString(OrginalPrice);
        dest.writeInt(OrderNum);
        dest.writeString(DiscountPrice);
        dest.writeString(CommissionPrice);
        dest.writeString(RecommandMoney);
        dest.writeString(RecommandID);
        dest.writeString(ConsumptionMoney);
        dest.writeString(BusinessPrice);
        dest.writeString(CreateDateTime);
        dest.writeString(UpdataDateTime);
        dest.writeInt(CStatu);
        dest.writeString(PayDateTime);
        dest.writeString(UseDateTime);
        dest.writeString(QRUrl);
        dest.writeString(WebID);
        dest.writeInt(orderClass);
        dest.writeInt(OrderType);
        dest.writeString(StoreName);
        dest.writeString(GoodsName);
        dest.writeString(UseTime);
        dest.writeInt(PayType);
        dest.writeString(AddressID);
        dest.writeString(DistributionTime);
        dest.writeString(DistributionFee);
        dest.writeString(CMemo);
        dest.writeStringList(CardID);
        dest.writeStringList(CartArrID);
        dest.writeInt(OrderStatu);
        dest.writeString(OrderID);
        dest.writeString(Distributiontype);
        dest.writeInt(IsStoreCus);
        dest.writeString(StoreReduce);
    }
}
